home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / BUS / DynRisk 68k 4.01 demo.sit / DynRisk-Help.rsrc / TEXT_4622.txt < prev    next >
Text File  |  1996-08-30  |  2KB  |  24 lines

  1. The 窶廢vent窶 popup menu is used to choose the event type. A HyperCard event supports the following event types:
  2.  
  3.     窶「 Do script
  4.     窶「 Evaluate
  5.  
  6. Do script
  7.  
  8. The 窶廛o script窶 event is used together with the 窶彜cript窶 field. By entering scripts in HyperTalk syntax into the 窶彜cript窶 field, you can have HyperCard executing these scripts during a simulation. We refer to the HyperCard manuals for further information. 
  9.  
  10. Since the 窶彜cript窶 field only allows very short scripts, most of the time you would be better off by writing the script inside a HyperCard stack, and then just call this script from DynRisk.
  11.  
  12. In addition to this, there are a few things you need to be aware of when writing scripts.
  13.  
  14. 1) If you want to include the input value of the event in a script, use the placeholder character 窶倪\ヲ窶™. [Option-.] DynRisk will then replace the placeholder by the input value before passing the script over to HyperCard. You can use as many placeholders as you like in your scripts.
  15.  
  16. 2) If you want the result value of the script (if there are one) to be passed on to the successors of the event, be sure to check the 窶廢xpect script reply窶 option checkbox. Otherwise the event will just pass on zero.
  17.  
  18. Evaluate
  19.  
  20. The 窶廢valuate窶 event is used to read the contents of a HyperCard field back to DynRisk. The location of the field is entered into the 窶彜cript窶 field, by using HyperCard syntax, e.g., as follows:
  21.  
  22.     card field myField
  23.  
  24. Note that since the 窶廢valuate窶 event always returns something back to DynRisk, you do not need to check the 窶廢xpect script reply窶 option checkbox for this event type. In fact DynRisk will not allow you to check it.